package com.lesso.yzh.sunflower.infra.assembler;

import com.lesso.yzh.sunflower.model.AttendanceRule;
import com.lesso.yzh.sunflower.pojo.dto.AttendanceRuleDTO;
import com.lesso.yzh.sunflower.pojo.dto.AttendanceRuleUpdateDTO;
import com.lesso.yzh.sunflower.pojo.vo.AttendanceRuleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AttendanceRuleAssembler {
    AttendanceRuleAssembler INSTANCE= Mappers.getMapper(AttendanceRuleAssembler.class);
    AttendanceRule dtoEntity(AttendanceRuleDTO dto);

    List<AttendanceRuleVO> entityListToVOList(List<AttendanceRule> attendanceRules);

    AttendanceRule dtoUpdateEntity(AttendanceRuleUpdateDTO dto);
}
